<%--
  Created by IntelliJ IDEA.
  User: L先森
  Date: 2014/12/22
  Time: 17:28
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.10.2.js"></script>
<script type="text/javascript">
    $().ready(function () {
        //点击图片更换验证码
        $("#Verify").click(function (){
            $(this).attr("src","securityCodeAction/excute.do?timestamp="+new Date().getTime());
        });
    });
</script>
<html>
<head>
    <title>登录界面</title>
    <%--<jsp:include page="${pageContext.request.contextPath}/front/header.jsp"/>--%>
    <link href="${pageContext.request.contextPath}/css/style.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/CheckForm.js"></script>
</head>
<body style=" background: url(${pageContext.request.contextPath}/images/body-bg.gif)  repeat;">
<div class="lightbox" id="LoginBox">
    <div style="position: relative;top:35%;left:50%">
        <form action="/user/login.do" method="post" style="position: absolute;width:220px;height:200px;margin:-100px 0 0 -110px">
            <div style="text-align: center">logoo<!--<img src="${pageContext.request.contextPath}/images/logoo.png"/>--></div>
            <input class="textbox" type="text" name="stuNumber" placeholder="请输入学号" required="required"/><br/>
            <input class="textbox" type="password" name="password" placeholder="输入密码" required="required"/><br/>
            <div class="clearfix"><input class="textbox floatLeft" style="width:70px;margin-right: 5px" type="text" name="securityCode" placeholder="输入验证码" required="required"/>
                <img class="floatLeft" src="/securityCodeAction/excute.do" id = "Verify"   alt="看不清，换一张"/></div>
            <div style="font-size: 14px;color: red !important;"><s:property value="%{ #message }"></s:property></div>
            <input type="checkbox" name="isAutoLogin"/>&nbsp;&nbsp;<span class="blacksliver">记住密码，下次自动登录</span><br/>
            <div style="text-align: center">
                <input type="submit" value="登陆" class="button" style="width:80px;height: 30px"/>&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" value="重置" class="button" id="reset" style="width:80px;height: 30px"/>
            </div>
        </form>
    </div>
    <div style="position: absolute;bottom:10px;right:20px"><a href="/index.do">返回主页>></a></div>
</div>
</body>
</html>

